package com.salt.modules.sys.web;

import com.salt.common.json.AjaxJson;
import com.salt.modules.sys.entity.UserRegisterParam;
import com.salt.modules.sys.service.UserRegisterService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author salt
 * @Date 2022/9/7
 * @Version 1.0.1
 */
@RestController
@AllArgsConstructor
@RequestMapping("sys/userRegister")
public class UserRegisterController {

    private final UserRegisterService userRegisterService;

    @PostMapping("register")
    public AjaxJson register(UserRegisterParam userRegisterParam) {
        return userRegisterService.register(userRegisterParam);
    }
}
